package com.yima.baseproj.module.app.equipment_entry;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yima.baseproj.module.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


import com.yima.baseproj.module.app.equipment_entry.model.*;

@Data
@TableName("equipment_entry")
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class EquipmentEntryEntity extends BaseEntity {

    @ApiModelProperty(value = "设备序列号")
    @TableField(value = "device_no")
    private String deviceNo;

    @ApiModelProperty(value = "备注")
    @TableField(value = "count")
    private String count;


    public void setData(EquipmentEntryAddParamModel paramModel) {
        this.deviceNo = paramModel.getDeviceNo();
        this.count = paramModel.getCount();
    }
}